<?php
 FLEA::loadClass('FLEA_Db_TableDataGateway');
 
class Model_ProductCompany extends FLEA_Db_TableDataGateway
{	
	var $tableName = 'product';
	var $primaryKey = 'id';

	var $hasOne = array(
		'tableClass' => 'Model_ProduceCompany',
		'foreignKey' => 'product_id',
		'mappingName' => 'p_company',
	);
}
?>